package cn.com.bluemoon.design.visitor;

import cn.com.bluemoon.design.visitor.file.PPTFile;
import cn.com.bluemoon.design.visitor.file.PdfFile;
import cn.com.bluemoon.design.visitor.file.TextFile;
import cn.com.bluemoon.design.visitor.file.WordFile;

/**
 * @author Jarod.Kong
 * @date 2021/1/13 13:16
 */
public class Extract2TxtVisitorManager implements Extract2TxtVisitor {
    @Override
    public void visitor(TextFile textFile) {
        System.out.println("已经是txt无需转换");
    }

    @Override
    public void visitor(PdfFile pdfFile) {
        System.out.println("pdf 2 txt");
    }

    @Override
    public void visitor(WordFile wordFile) {
        System.out.println("word 2 txt");
    }

    @Override
    public void visitor(PPTFile pptFile) {
        System.out.println("ppt 2 txt");
    }
}
